package sumpayTest4;

import java.sql.Connection;
import java.sql.DriverManager;

public class GetConnection {
	private static Connection conn=null;
	public static Connection getconnection() throws Exception{
		 Class.forName("oracle.jdbc.driver.OracleDriver");
		 String url="jdbc:oracle:thin:@192.168.8.233:1521/hzsm";
		// String url="jdbc:oracle:thin:@192.168.8.233:1521:hzsmdb";
		 conn=DriverManager.getConnection(url, "hzsmdb", "hzsm#DB");
		 return conn;
	}
	
}
